#expecting not normalized testdata
function [correctRatio errMatrix] = verify(testdata, testlabels, params, exhaustiveMode=false)
    labelset=unique(testlabels);    
    errMatrix=zeros(size(labelset,1),size(labelset,1)+1);    
    correct=0;
    for(i=1:size(testdata,1))
        answer = tellClass(testdata(i,:),params,labelset, exhaustiveMode);
        if(answer==testlabels(i,1))
            correct=correct+1;
        endif;
        errMatrix(testlabels(i,1)+1,answer+1)+=1;    
    end;
    correctRatio = correct/size(testdata,1);
end;
